package com.sbj.dto.req;

import com.sbj.dto.valid.NotBlankPhonePattern;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/18 17:36
 */
@Data
public class ForgetPsdReq implements Serializable {

    @NotBlankPhonePattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    private String password;
}
